package model;

public class Vertex {

	public int x;
	public int y;

	public Vertex(int x, int y) {
		this.x = x;
		this.y = y;
	}

	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof Vertex))
			return false;
		Vertex other = (Vertex) obj;
		return (other.x == x) && (other.y == y);
	}
	
	@Override
	public int hashCode() {
		return x ^ ((y << 16) | (y >>> (32-16)));
	}

}
